import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 引入 element-ui
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 导入全局样式表
import '@/assets/global.less'
// 引入 axios
import axios from 'axios'
// 设置 axios 根路径
axios.defaults.baseURL = 'http://www.liulongbin.top:3008'
Vue.config.productionTip = false

// 安装 element-ui
Vue.use(ElementUI)

// 将 axios 挂载到 Vue.prototype 实例上
Vue.prototype.$http = axios

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
